SpreadsheetGear 2023
CommandPrint Constructor(ICollection<IPrintable>,Boolean,Boolean)


SpreadsheetGear.Windows.Forms Namespace > CommandPrint Class > CommandPrint Constructor : CommandPrint Constructor(ICollection<IPrintable>,Boolean,Boolean)
Specifies a list of printable objects.
Specifies whether to do a print preview.
Specifies whether the print dialog should be displayed before printing.
Initializes this Command with the specified printable objects.
Syntax
'Declaration
 
Public Function New( _
   ByVal printables As System.Collections.Generic.ICollection(Of IPrintable), _
   ByVal printPreview As System.Boolean, _
   ByVal showPrintDialog As System.Boolean _
)
'Usage
 
Dim printables As System.Collections.Generic.ICollection(Of IPrintable)
Dim printPreview As System.Boolean
Dim showPrintDialog As System.Boolean
 
Dim instance As New CommandPrint(printables, printPreview, showPrintDialog)
public CommandPrint( 
   System.Collections.Generic.ICollection<IPrintable> printables,
   System.bool printPreview,
   System.bool showPrintDialog
)

Parameters

printables
Specifies a list of printable objects.
printPreview
Specifies whether to do a print preview.
showPrintDialog
Specifies whether the print dialog should be displayed before printing.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

CommandPrint Class
CommandPrint Members
Overload List